{template 'common/header'}

<ul class="nav nav-tabs">
	<li class="active"><a href="{php echo $this->createWebUrl('withdrawals', array('op'=>'display'));}">提现申请单</a></li>
</ul>
	<div class="panel panel-default">
		<div class="panel-heading">提现申请单</div>
		<div class="panel-body">
			<div class="table-responsive panel-body">
				<table class="table table-hover" style="min-width: 300px;">
					<thead class="navbar-inner">
						<tr>
							<th class="col-sm-1">申请人昵称</th>
							<th class="col-sm-1">联系电话</th>
							<th class="col-sm-1">提现金额</th>
							<th class="col-sm-1">提现方式</th>
							<th class="col-sm-2">提现时间</th>
							<th class="col-sm-1">提现状态</th>
							<th class="col-sm-2">银行卡号</th>
							<th class="col-sm-1">开户用户</th>
							<th class="col-sm-2">支付宝账号</th>
							<th class="col-sm-1">支付宝用户</th>
							<th class="col-sm-1 text-right">操作</th>
						</tr>
					</thead>
					<tbody>
						{loop $goodses $goodsid $goods}
						<tr>
							<td>{$goods['nickname']}</td>
							<td>{$goods['mobile']}</td>
							<td>{$goods['price']}元</td>
							<td>{if ($goods['paytype']==1)}<span class="label label-warning">银行卡</span>{else}<span class="label label-warning">支付宝</span>{/if}</td>
							<td>{php echo date('Y-m-d H:i:s', $goods['createtime']);}</td>
							<td>{if ($goods['status']==0)}<span class="label label-success">进行中</span>{else}<span class="label label-info">已完成</span>{/if}</td>
							<td>{$goods['bankcard']}</td>
							<td>{$goods['bankname']}</td>
							<td>{$goods['alipay']}</td>
							<td>{$goods['aliname']}</td>
							<td class="text-right">
							{if ($goods['status']==0)}
								<a href="{php echo $this->createWebUrl('withdrawals', array('op'=>'edit','id'=>$goods['id']));}" class="btn btn-danger btn-sm" data-original-title="" title="">确认提现</a>
							{else}
								<a href="#" class="btn btn-success btn-sm" data-original-title="" title="">提现成功</a>
							{/if}
							</td>
						</tr>
						{/loop}
						{if empty($goodses)}
						<tr>
							<td colspan="8">
								没有提现申请
							</td>
						</tr>
						{/if}
					</tbody>
				</table>
				{$pager}
			</div>
		</div>
	</div>
</div>

{template 'common/footer'}